package com.niit.entity;

import java.sql.Timestamp;

public class Book {

	private Integer id;
	private Double bookPrice;
	private String bookName;
	private String bookAuthor;
	private String bookPublisher;
	private Timestamp createTime;

	public Book() {

	}

	public Book(Double bookPrice, String bookName, String bookAuthor, String bookPublisher) {
		super();
		this.bookPrice = bookPrice;
		this.bookName = bookName;
		this.bookAuthor = bookAuthor;
		this.bookPublisher = bookPublisher;
	}
	

	public Book(Integer id, Double bookPrice, String bookName, String bookAuthor, String bookPublisher,
			Timestamp createTime) {
		super();
		this.id = id;
		this.bookPrice = bookPrice;
		this.bookName = bookName;
		this.bookAuthor = bookAuthor;
		this.bookPublisher = bookPublisher;
		this.createTime = createTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Double getBookPrice() {
		return bookPrice;
	}

	public void setBookPrice(Double bookPrice) {
		this.bookPrice = bookPrice;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getBookAuthor() {
		return bookAuthor;
	}

	public void setBookAuthor(String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}

	public String getBookPublisher() {
		return bookPublisher;
	}

	public void setBookPublisher(String bookPublisher) {
		this.bookPublisher = bookPublisher;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", bookPrice=" + bookPrice + ", bookName=" + bookName + ", bookAuthor=" + bookAuthor
				+ ", bookPublisher=" + bookPublisher + ", createTime=" + createTime + "]";
	}
	
}
